package lab01;

public class Test13 {
    public static void main(String[] args) {
        for (int i = 100; i < 1000; i++) {

            int g = i % 10;
            int s = i / 10 % 10;
            int b = i / 100 % 10;

            if (i == b * b * b + s * s * s + g * g * g) {
                System.out.println(i);
            }

        }
    }
}
